{% extends 'homepage.html' %}

{% block content %}
 <h2> {{ KNOWL('alg.dirichlet_series') }}</h2>
 <div>\[{{ dirichlet }}\]</div>

 <h2>{{ KNOWL('alg.functional_equation') }}</h2>
 
 <div class="LfunctionFooter">
   <a id="functionalEqSelberg" href="#">Selberg</a>{{ KNOWL('alg.selberg', title="") }}
   &middot;
   <a id="functionalEqAnalytic" class="highlight" href="#">Analytic</a>
 </div>
 <div id="functionalEqText">\({{ functionalequation }}\)</div>
 
 <h2>{{ KNOWL('alg.euler_prod') }}</h2>
 <div>\[{{ eulerproduct }}\]</div>

 <h2> Imaginary part of the first few zeroes on the {{ KNOWL('alg.critical_line') }}</h2>

 {% if zeroeslink %}
     <div><span id="zeroes"></span></div>
 {% else %}
     <div>Not enough Dirichelet series coefficients to compute zeros.</div>
 {% endif %}

 {% if sv1 and sv12 %}
     <h2>Special Values</h2>
     <div>
      {{ sv12 }}<br>
      {{ sv1 }}<br>
     </div>
 {% else %}
      <div>Not enough Dirichelet series coefficients to compute special values.</div>
 {% endif %}

 {% if plotlink %}
    <h2> Graph of the \(Z\)-function along the {{ KNOWL('alg.critical_line') }} </h2>
    <img src="{{ plotlink|safe }}" >
 {% else %}
    <div>Not enough Dirichelet series coefficients to make a graph.</div>
 {% endif %}
    
<script type="text/javascript">
  $(function() {
      $("#zeroes").load("{{ info.zeroeslink|safe }}");
  });

  $("#functionalEqSelberg").click(function(e) {
    e.preventDefault();
    $(this).addClass("highlight");
    $("#functionalEqAnalytic").removeClass("highlight");
    var math = MathJax.Hub.getAllJax("functionalEqText")[0];
    MathJax.Hub.Queue(["Text",math, "{{ info.functionalequationSelberg|safe }}"]);
  });
    
  $("#functionalEqAnalytic").click(function(e) {
    e.preventDefault();
    $(this).addClass("highlight");
    $("#functionalEqSelberg").removeClass("highlight");
    var math = MathJax.Hub.getAllJax("functionalEqText")[0];
    MathJax.Hub.Queue(["Text",math, "{{ info.functionalequationAnalytic|safe }}"]);
  });
</script>

{% endblock %}

